package com.example.login.Pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Goods implements Comparable{
    int id;
    int seller_id;
    String item_name;
    String store_name;
    String brand_name;
    String goodImage;
    String cid;
    int fright;
    int goodStatus;
    public int sell_num;
    int min_price;

    @Override
    public int compareTo(Object o) {
        Goods g=(Goods)o;
        return -this.sell_num+g.getSell_num();
    }

}
